using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmBidderTransfer")]
    public class BidderTransfer
    {
        public BidderTransfer()
        {
            Bidders = new HashSet<Bidder>();
        }

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BidderTranId", ResourceType = typeof(Resources.BidderTransferResource))]
        public int BidderTranId { get; set; }

        [ForeignKey("Bidder")]
		[DataMember, Display(Name = "BidderId", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<int> BidderId { get; set; }

        [ForeignKey("MasContact")]
		[DataMember, Display(Name = "ConId", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<int> ConId { get; set; }

		[DataMember, Display(Name = "RevisionNo", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<int> RevisionNo { get; set; }

		[DataMember, Display(Name = "TransferDate", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<System.DateTime> TransferDate { get; set; }

		[DataMember, Display(Name = "TransferReason", ResourceType = typeof(Resources.BidderTransferResource))]
        public string TransferReason { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.BidderTransferResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        [DataMember]
        public virtual Bidder Bidder { get; set; }

        [DataMember]
        public virtual MasContact MasContact { get; set; }

        [DataMember]
        public virtual ICollection<Bidder> Bidders { get; set; }
    }
}